import request from '@/utils/request';

/* ------种草动态------ */
//种草分页
export function contentQuery(params) {
  return request({
    url: '/recommend/trends/page',
    method: 'get',
    params
  })
}
//种草详情
export function contentInfo(params) {
  return request({
    url: '/recommend/trends/get',
    method: 'get',
    params
  })
}
//种草删除
export function contentDelete(params) {
  return request({
    url: '/recommend/trends/delete',
    method: 'delete',
    params
  })
}
//种草新增
export function contentAdd(data) {
  return request({
    url: '/recommend/trends/save',
    method: 'post',
    data
  })
}
//种草修改
export function contentEdit(data) {
  return request({
    url: '/recommend/trends/update',
    method: 'post',
    data
  })
}

/* -----种草所有分类------ */
export function getAllClassify() {
  return request({
    url: '/recommend/type/getAll',
    method: 'get',
  })
}

/* ------种草评论------ */
//评论分页
export function recommendQuery(params) {
  return request({
    url: '/recommend/comment/page',
    method: 'get',
    params
  })
}
//删除评论
export function recommendDel(params) {
  return request({
    url: '/recommend/comment/delete',
    method: 'delete',
    params
  })
}
//回复评论
export function recommendReply(data) {
  return request({
    url: '/recommend/comment/reply',
    method: 'post',
    data
  })
}

